﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace GameControlTest
{
    public class CollidedCommand : Command
    {
        private GameObject _b;

        public CollidedCommand(GameObject a, GameObject b)
            : base(a)
        {
            _b = b;
        }

        public override void Execute(float elapsedTimeRatio)
        {
            _go.Collided(_b);
            _b.Collided(_go);
        }
    }
}
